home *** CD-ROM | disk | FTP | other *** search
- Path: nntp.teleport.com!usenet
- From: GHouck <hksys@teleport.com>
- Newsgroups: comp.lang.c
- Subject: Re: Help on:Printing to Printer from within c / c++ program
- Date: 11 Apr 1996 20:38:07 GMT
- Organization: systems hk
- Message-ID: <4kjqjf$3g5@nadine.teleport.com>
- References: <316a58d0.5945808@nntp.ix.netcom.com>
- NNTP-Posting-Host: ip-pdx09-42.teleport.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22 (Windows; I; 32bit)
-
- cmalinow@ix.netcom.com (Chris Malinowski) wrote:
- >Newbie requires help.
- >Trying to read in a seq file from disk, and print on the printer.
- >OPEN of input file works ok, but am having difficulty opening the
- >output file as the printer device.
- >System is Dos/ Windows 3.1
- >Borland c++ 3.1
- >Redirect is out of the question, must perform the file open from
- >withing the progam.
- >
- Chris,
-
- Since you're using DOS/Windows, you should be able to fopen and
- fprintf to the device called 'PRN' or 'LPT1,2,...' If I remember
- correctly, there is also a standard device called 'stdprn', analogous
- to the streams for 'stdin', 'stdout', 'stderr' . Perhaps not.
- Yours, Geoff Houck
-
-